package com.cssy.xxkj.logic.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.logic.entity.LogicCheckBackItemDO;

/**
 * 数据访问对象接口
 * @since 2014-11-12
 */
public interface LogicCheckBackItemDAO {

    /**
     * 插入数据
     * @param logicCheckBackItemDO
     * @return 插入数据的主键
     */
    public String insertLogicCheckBackItemDO(LogicCheckBackItemDO logicCheckBackItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicCheckBackItemDO
     * @return 查出的记录数
     */
    public Integer countLogicCheckBackItemDOByExample(LogicCheckBackItemDO logicCheckBackItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicCheckBackItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicCheckBackItemDO(LogicCheckBackItemDO logicCheckBackItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicCheckBackItemDO
     * @return 对象列表
     */
    public List<LogicCheckBackItemDO> findListByExample(LogicCheckBackItemDO logicCheckBackItemDO) throws DataAccessException;
    
    public List<LogicCheckBackItemDO> findListByMap(Map<String, Object> paramMap) throws DataAccessException;
    

    /**
     * 根据主键获取logicCheckBackItemDO
     * @param id
     * @return logicCheckBackItemDO
     */
    public LogicCheckBackItemDO findLogicCheckBackItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicCheckBackItemDOByPrimaryKey(String id) throws DataAccessException;
    /**
     * 根据主表id 删除行记录
     * @param id
     * @return
     * @throws DataAccessException
     */
    
    public Integer deleteLogicCheckBackItemDOByLogicCheckBackId(String id) throws DataAccessException;
    
    
}